package com.study.zouchao.superproject.comtaskdetail;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.study.zouchao.superproject.R;

/**
 * Created by Administrator on 2017/6/20.
 */

public class TaskDetailActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_task_detail);
    }

    public static void actionStart(Context context) {
        Intent intent = new Intent(context, TaskDetailActivity.class);
        context.startActivity(intent);
    }

    public static void actionStartTaskDetailActivity(Context context, int taskId) {
        Intent intent = new Intent(context, TaskDetailActivity.class);
        intent.putExtra(TaskDetailFragment.KEY_TASK_ID, taskId);
        context.startActivity(intent);
    }
}
